package org.example.Server.controller.semester;

import lombok.extern.slf4j.Slf4j;
import org.example.Server.service.semester.SemesterService;
import org.example.Server.utils.ResultAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/youxich/semester")
public class SemesterController {
    @Autowired
    private SemesterService semesterService;

    /**
     * 每一个课堂点开的详情以及增加访客量
     *
     * @param semester_id
     * @return
     */
    @GetMapping
    public ResultAPI getSemesterandVisit(@RequestParam Integer semester_id, @RequestParam Integer tech_id) {
        return semesterService.getSemesterandVisit(semester_id, tech_id);
    }
}
